package com.eet.elasticsearch.controller;

import com.eet.elasticsearch.constants.CommonConstants;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 首页跳转控制器
 *
 * @author zheng.zhang
 */
@Controller
public class IndexController {

    /**
     * 首页跳转
     *
     * @return 首页索引
     */
    @GetMapping({"/", "/index"})
    public String index() {
        return CommonConstants.INDEX;
    }
}
